JavaLaurence Posted August 18, 2014 at 07:45 PM Share Posted August 18, 2014 at 07:45 PM In an attempt to play some MIDI music files through the speaker, it would help if the API had noteOn(freq) and noteOff() .. the current beep with its duration parameter makes it hard to parse MIDI events which do not tell you what duration a note is. The note duration is implied from the distance between NOTE ON and NOTE OFF. Any chance of an API enhancement in a forthcoming release? Pretty please. Quote Link to comment Share on other sites More sharing options...
photron Posted August 19, 2014 at 10:30 AM Share Posted August 19, 2014 at 10:30 AM Piezo Speaker Bricklet Plugin 2.0.2 now treats beep() with a duration of 0 as "stop current beep" and beep() with a duration of 4294967295 (UINT32_MAX) as "beep forever". Quote Link to comment Share on other sites More sharing options...
JavaLaurence Posted August 19, 2014 at 02:12 PM Author Share Posted August 19, 2014 at 02:12 PM Cool, just what I need. Did you just add this for me, or has 2.0.2 been out a while? BTW, it would be nice if changelogs contained release date and version. Quote Link to comment Share on other sites More sharing options...
photron Posted August 19, 2014 at 03:21 PM Share Posted August 19, 2014 at 03:21 PM I released 2.0.2 today, see the announcements thread. You pointed out a missing feature that was easy to add, so I added it. Changing the changelog format is not that easy, so that won't happen today Quote Link to comment Share on other sites More sharing options...
JavaLaurence Posted August 20, 2014 at 11:14 AM Author Share Posted August 20, 2014 at 11:14 AM Thanks! Upgrading bricklet firmware always gives a nice, warm feeling ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.