August 18, 2014 at 07:45 PMAug 18, 2014 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.
August 19, 2014 at 10:30 AMAug 19, 2014 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".
August 19, 2014 at 02:12 PMAug 19, 2014 Author 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.
August 19, 2014 at 03:21 PMAug 19, 2014 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
August 20, 2014 at 11:14 AMAug 20, 2014 Author Thanks! Upgrading bricklet firmware always gives a nice, warm feeling ;D
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.