JavaLaurence Geschrieben August 18, 2014 at 19:45 Geschrieben August 18, 2014 at 19:45 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. Zitieren
photron Geschrieben August 19, 2014 at 10:30 Geschrieben August 19, 2014 at 10:30 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". Zitieren
JavaLaurence Geschrieben August 19, 2014 at 14:12 Autor Geschrieben August 19, 2014 at 14:12 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. Zitieren
photron Geschrieben August 19, 2014 at 15:21 Geschrieben August 19, 2014 at 15:21 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 Zitieren
JavaLaurence Geschrieben August 20, 2014 at 11:14 Autor Geschrieben August 20, 2014 at 11:14 Thanks! Upgrading bricklet firmware always gives a nice, warm feeling ;D Zitieren
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.