Re: [Lazarus] Update sound shop my next tutoring project

2019-05-18 Thread Marc Weustink via lazarus
: https://paste.pics/a5259cfe447e4cd2a1fd559cc89d7360 Marc From: Anthony Walter Sent: vrijdag 17 mei 2019 20:08 To: Lazarus mailing list Cc: Marc Weustink Subject: Re: [Lazarus] Update sound shop my next tutoring project So progressing with the program I've added the ability to both play songs

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-17 Thread Anthony Walter via lazarus
I think I isolated some wave samples that don't look smooth. I will try fix my code. > -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-17 Thread Anthony Walter via lazarus
So progressing with the program I've added the ability to both play songs and record audio. Up to date source are in the github repository. But I still have audio clicks and the waveform looks fine in Audacity. Here are two links demonstrating the clicking or pops: View and sound from Audacity:

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-16 Thread Marc Weustink via lazarus
AW: I will take you advice and write the samples out to a PCM wave file then examine them in audacity. Regarding the underflow, I always wipe the buffer with zeros before I play a note and the popping occurs sometimes when only one note is playing. That is when there is the least amount of

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-16 Thread Anthony Walter via lazarus
I will take you advice and write the samples out to a PCM wave file then examine them in audacity. Regarding the underflow, I always wipe the buffer with zeros before I play a note and the popping occurs sometimes when only one note is playing. That is when there is the least amount of processing,

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-16 Thread Marc Weustink via lazarus
Just to verify that it isn't caused by your program, just open a temp filestream and write every sample you write to the sdl library also to that stream. When the pops happen. Stop running, close the stream and import the raw file into audacity. If the spectral view is clean, it is not your

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-16 Thread Anthony Walter via lazarus
Just an update. I've added the ability to program music with it. You have the ability to either load music from a file or create music by adding notes to the piano Music property. http://cache.getlazarus.org/videos/sound-shop-music.mp4 Marc, The phase of each note is now set to a completely

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-16 Thread Marc Weustink via lazarus
Anthony Walter via lazarus wrote: Marc, That is interesting and you've given me something to consider and perhaps adjust. Thank you. Also with regards to attack and release, I've opted to call it just attack. That is when the note is starting to play, or ending playing, I perform a short

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-16 Thread Anthony Walter via lazarus
Marc, That is interesting and you've given me something to consider and perhaps adjust. Thank you. Also with regards to attack and release, I've opted to call it just attack. That is when the note is starting to play, or ending playing, I perform a short fade of the wave form on both ends using

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-16 Thread Marc Weustink via lazarus
Anthony Walter via lazarus wrote: I have summer camp with several successive week long classes coming up and am trying to put together some fun programming materials to engage the kids and hopefully encourage them to explore more. Yesterday I created the start of my next project for teaching

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread Anthony Walter via lazarus
Got it. Thanks. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread José Mejuto via lazarus
El 15/05/2019 a las 20:35, Anthony Walter via lazarus escribió: I just looked at you MP3 decoder source. It looks like it mimics the mpg123 API which is perfect. The only question I have is what is the best way to seek to a time in an MP3 memory buffer for use with your pdmp3_feed and 

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread Anthony Walter via lazarus
Silvio, Actually I am to add a node based system for mapping each key of the keyboard similar to this project . Instead of source images, like in the Image Shop program, there will be wave source nodes and file source nodes. The node

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread silvioprog via lazarus
On Wed, May 15, 2019 at 4:51 PM Anthony Walter via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I usually add GPL licences to my repositories but I forgot this time. > Thanks for reminding me. It's now attached. > > Regarding the TPianoKeyboard class here is some helpful information. > >

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread Anthony Walter via lazarus
I usually add GPL licences to my repositories but I forgot this time. Thanks for reminding me. It's now attached. Regarding the TPianoKeyboard class here is some helpful information. It's a TGraphicControl. It relies on the Music unit, also in the same project, to convert keys to frequencies and

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread silvioprog via lazarus
On Wed, May 15, 2019 at 2:45 PM Anthony Walter via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I have summer camp with several successive week long classes coming up and > am trying to put together some fun programming materials to engage the kids > and hopefully encourage them to explore

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread Anthony Walter via lazarus
I just looked at you MP3 decoder source. It looks like it mimics the mpg123 API which is perfect. The only question I have is what is the best way to seek to a time in an MP3 memory buffer for use with your pdmp3_feed and pdmp3_read functions? I don't want to decode whole MP3 streams into PCM wave

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread Anthony Walter via lazarus
Thank you so much for a link to your MP3 decoder! I will take a look at integrating it this coming weekend. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Update sound shop my next tutoring project

2019-05-15 Thread Sergey Bodrov via lazarus
Ported from PDMP3 Public domain MP3 decoder https://github.com/serbod/acs/blob/master/src/formats/general/mp3.pas but I don't tested it properly. Also, whole ACS components can be useful to build interactive pipeline for sound processing https://github.com/serbod/acs/ ср, 15 мая 2019 г. в