Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Sandbox Pedal Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Writing your first FV-1 program
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== How an FV-1 program works == The FV-1 runs your program '''once per audio sample''', 32768 times a second. There is no main loop that you write; the chip loops for you. That gives you a hard budget of '''128 instructions'''. Anything shorter is padded with NOPs automatically. There is no way to spend more time on one sample than another. Almost everything flows through a single '''accumulator''' (ACC). You read a value into it, do arithmetic on it, and write it somewhere. Most instructions multiply by a coefficient on the way past. The registers you will use first: {| class="wikitable" ! Register !! Meaning |- | <code>ADCL</code>, <code>ADCR</code> || Audio input, left and right |- | <code>DACL</code>, <code>DACR</code> || Audio output, left and right |- | <code>POT0</code>β<code>POT2</code> || The three control knobs, 0.0 to 1.0 |- | <code>REG0</code>β<code>REG31</code> || General-purpose storage |} Coefficients are fixed-point fractions in the range β1.0 to just under 1.0. You cannot write <code>1.0</code> and expect exactly one in every field, which is why you will see <code>0.999</code> in places where you might expect 1.
Summary:
Please note that all contributions to Sandbox Pedal Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
My wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)