Skip to content

Volume Update and Compiler Warnings fix

Compare
Choose a tag to compare
@nathanRamaNoodles nathanRamaNoodles released this 03 Sep 00:36
· 12 commits to master since this release

MusicWithoutDelay v3.0.0

Features Update

  • The volume control was probably the hardest to achieve in this project, but I'm proud to say that I figured it out(through hit or miss).
  • I've also added Sustain Override in order to take control of each note's front and back-end modulation.
  • Added ability to play simple continous waves, as an addition to my libraries main purpose(playing chiptunes)
  • Added "play once" ability, and a repeat method. This is an improvement compared to my previous method using isEnd() with pause().
    • To play a certain amount of times, simply call buzzer.play(int numberOfTimes)
    • To play for infinty, like the previous Versions, call buzzer.play()
  • Added ability to call multiple methods at once in one line of code
    • For example, If you want to pause and change the volume, you can join methods, as follows buzzer.pause(true).setVolume(50)

Bugs

  • Fixed annoying bug with compiler warnings 😜
  • Corrected + signs in RTTL file to allow sluring sound effect

Other Changes

  • I changed the regular way of updating the instrument, so instead of buzzer.play() it's buzzer.update()
  • Also, the pause() and other similar functions requires a boolean to set it(This is my personal preference)
    • So pause(true) means the instrument will pause and vias versa.