Log In  

Think of the possibilities! And it could be as simple as adding the following function:

freq frequency [channel]
sets channel's frequency to frequency hz. If no channel is provided, 0 is assumed. 0 or negative frequencies mutes it (no sound). Frequency is also reset when sound or music plays on a given channel.

P#21948 2016-05-31 17:03 ( Edited 2016-05-31 22:50)

setting frequencies at 30 fps though? doesn't sound very practical.

P#21966 2016-05-31 18:39 ( Edited 2016-05-31 22:39)

Note that Pico itself calls _update at 30fps. Nothing forbids you from making custom update loop that works waay faster (been there, done that), though you'd need to take care about flipping the buffer and whatnot.

//edit: Also apparently flip() is kinda expensive - dunno if intended or not.

P#21971 2016-05-31 18:50 ( Edited 2016-05-31 22:55)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2022-12-02 22:40:32 | 0.005s | Q:11