I just tested my pan sound left/right speaker code and it worked. The sound component now has the following extra properties:
- Playback Speed (settings 0 and above)
50 is half speed
100 is normal speed
200 double speed playback
- Pan_left_right (settings -100 to 100)
-100 = left speaker on full & right speaker mute
0 = both left & right speaker full
100 = left speaker mute & right speaker on full
I made a small AI project add a clock. I then add a counter variable starting from -100 then in the clock.timer I add the code counter=counter+1 then start sound and set sound.Pan_left_right=counter. This simple project gives effect of the sound moving across the device. Believe me it sound really cool.
Will add looping next then will look at trying to adding some funky sound effects like echoing, chorus & delay to the source code. The way I have emulated the echo effect in my app inventor project in the past is to add a number of player and playing the same sound effect with a small time delay. That method works well but is quite a bit of code. It will be so cool if I actually get extra sound effects added to the source code and means it will be just one block of code in the block editor.
One other thing I've also achieved today was to look at the source code for the Button component. I've managed to successfully change it so the font size can be set and displayed in the block editor for the button component. (This has been something I've wanted for along time and it was really easy to sort. It was just a matter of deleting 2 bits of code)