Claudio Davi

GrainOS · GuidePortuguês

How-to guides

Short recipes for one job each. Pick the one you need and follow the numbers.

New to GrainOS? Start with 01-getting-started, then 02-first-jam-techno. For the chord player, see 03-chord-mode. For deeper tricks, see 05-advanced. Every control and range is listed in 06-reference.

How the buttons are written

Miyoo button names come first. The PC and web keys follow in brackets, like this: R2 (PC: 2).

The Miyoo letter buttons are not the same letters on a PC keyboard:

MiyooPC / web key
AZ (or Space)
BX
XS
YA
L1 / R1Q / W
L2Shift (or 1)
R22
SELECTBackspace
STARTEnter
MENUEsc
VOL+ / VOL-= and -

L2 is the “shift” button. “L2+START” means: hold L2, then tap START.

Most changes wait for the next bar line (the start of the next bar of four beats). That keeps everything in time. You will see a small “NEXT BAR” note on the screen while a change waits.


Contents


How to change the key, chord set or tempo

The key, the chord set and the tempo all live on the SONG page.

The SONG page in TECHNO mode, with GENRE, KEY, SET and TEMPO.

  1. Press R1 (PC: W) or L1 (PC: Q) until the tab bar shows SONG. It is the second to last tab.
  2. Change the KEY: press UP or DOWN. There are 12 keys. The chords move to the new key on the next bar.
  3. Change the chord SET: hold L2 (PC: Shift) and press LEFT or RIGHT. A set is a group of 8 chords that fit together. The sets are DUB, DEEP, MELANCHOLY, DREAMY, DORIAN, SUS, PLANE and LOFI.
  4. Change the TEMPO: hold L2 and press UP or DOWN. Hold the button and it speeds up. The range is 40 to 200 BPM (beats per minute).

Shortcut for the set: on any page, hold L2 and tap L1 or R1. In TECHNO mode this switches the genre instead. In CHORD mode it switches the set at once.

Good to know:

  • In TECHNO mode, the key and set change on the next bar. The tempo changes right away.
  • In CHORD mode, the SONG page has KEY (LEFT/RIGHT), SET (UP/DOWN) and TEMPO (L2+LEFT/RIGHT). The tempo also sits on the BEAT page.
  • Key and tempo are not saved. Every power-on starts the same default jam (key D, 120 BPM in TECHNO).

How to switch genre on the phrase line

TECHNO mode has four genres: DUB, DEEP HOUSE, LO-FI and ACID. A genre is a whole style: drums, bass, chord sound, tempo and echo.

A phrase is 8 bars. The genre switch waits for the end of the current phrase, so it never lands in the middle of a groove.

The header with an outlined badge "> DEEP HOUSE IN n" waiting for the phrase line.

  1. On any TECHNO page, hold L2 (PC: Shift) and tap R1 (PC: W) for the next genre, or L1 (PC: Q) for the previous one.
  2. Look at the top right. An outlined badge such as > DEEP HOUSE IN 5 counts the bars left.
  3. Tap again to keep walking through the genres. The badge always shows the last one you asked for.
  4. At the phrase line the new genre starts. The tempo glides to the new tempo over one bar.

You can also pick the genre on the SONG page: LEFT or RIGHT on the first row.

What a switch changes: tempo, swing, chord set, chord sound, echo, haze, kick, hats, bass and the echo and reverb sends of every part. Any edits you made to those are replaced by the genre’s own values.

What a switch keeps: the key, ENERGY, your mutes, volume and the DJ filter.

If the music is stopped, the switch happens at once.


How to get back a pattern you liked (UNDO)

ROLL makes a new variation of the groove inside the current genre. You do not like it? UNDO goes back.

  1. Hold L2 (PC: Shift) and tap Y (PC: A). This is ROLL. A new groove lands on the next bar line. The header shows a badge like ROLL 2.
  2. Roll as many times as you like.
  3. To go back one step, hold L2 and tap START (PC: Enter). This is UNDO. It lands on the next bar line.
  4. Keep tapping L2+START to go further back. You can go back up to 8 rolls.
  5. When there is nothing left to undo, the roll badge flashes NO UNDO.

The header with the ROLL badge after two rolls.

You can also use the menu: Menu > Roll groove and Menu > Undo roll.

Limits:

  • UNDO only walks back rolls. It does not undo a genre switch, a key change or a knob you turned.
  • ROLL can also change the chord style. UNDO brings the old style back with the old groove.
  • To go back to a genre’s own groove, undo all the way (ROLL 0). The ROLL badge then disappears.

How to make a build-up and a drop

A build adds hats, rim hits and echo, bar by bar, and takes the kick away at the end. The drop brings it all back with more energy.

  1. Play a groove you like.
  2. Hold L2 (PC: Shift) and hold X (PC: S). Keep both held.
  3. Wait. The build grows for up to 8 bars. The header shows a red BUILD n badge, where n counts the bars.
    • From bar 2: 8th-note hats.
    • From bar 3: 16th-note hats.
    • From bar 4: rim hits on the off-beats.
    • From bar 6: rim 8th notes.
    • Last bar: hat ratchets (fast repeated hits) and no kick.
  4. Let go of X. The badge says DROP NEXT BAR.
  5. On the next bar line everything comes back, with a loud impact sound. ENERGY goes up by one (up to 7).

The PLAY page during a build, with the red BUILD badge.

Tips:

  • Hold for at least one whole bar. A shorter tap does nothing.
  • Press START (PC: Enter) to stop the music and cancel a build.
  • For more tension, use the stutter at the same time. Hold R2 (PC: 2) to repeat a slice of the whole mix. Let go and it stops on the next grid line. To change the stutter speed, press L2+R2. The rates go 1/8, 1/16, 1/32.
  • Stutter does not work in CHORD mode.

How to make a dub echo throw

An echo throw sends the chords into the echo at full level, and the echoes keep ringing after you let go. It is the classic dub move.

  1. Play a groove with chords. Make sure the chord part is on.
  2. Hold B (PC: X). The header shows THROW.
  3. Let go of B. The echoes ring on for a few seconds.

Shape the echo on the FX page:

  • LEFT/RIGHT: ECHO TIME (1/8, dotted 1/8 or 1/4).
  • UP/DOWN: FEEDBACK. More feedback means more repeats.
  • L2+LEFT/RIGHT: ECHO ALL, the master amount.

Where B does not throw:

  • On the PARTS page, B switches the hats on and off.
  • On the CHORDS page, B plays chord 6.
  • A throw you started on another page still ends when you let go of B.
  • To freeze the sound in the haze, hold L2 and tap B. Tap again to unfreeze.

How to make it swing more (FEEL, SWING, HUMAN)

All three are on the GROOVE page.

The GROOVE page with FEEL, SWING, FILLS and HUMAN.

  1. Press R1 (PC: W) or L1 (PC: Q) to reach GROOVE. It is the last tab.
  2. SWING: press UP or DOWN. It delays every second 16th note. The range is 0 to 30 %. A higher number means a lazier feel.
  3. FEEL: press LEFT or RIGHT. The choices are:
    • NORMAL: the genre’s own feel.
    • HALF-TIME: the kick and clap stretch over twice the time. The backbeat feels half as fast.
    • DOUBLE HATS: twice as many hat hits. The new hits are soft.
    • SHUFFLE: forces at least triplet swing (33 %).
  4. HUMAN: hold L2 (PC: Shift) and press UP or DOWN. It lets hits fall slightly late, in steps of 5 %. The kick stays on the grid in most genres.

A genre switch resets swing and human to the genre’s own values. LO-FI is the swingiest (25 % swing, 40 % human). ACID is straight.


How to play chords over a beat

You can do this in either mode.

In TECHNO mode

  1. Press R1 (PC: W) until you reach the CHORDS page. It is the second tab.
  2. The eight chords of the set are in a grid. Pick one:
    • LEFT, DOWN, RIGHT, UP: chords 1 to 4.
    • Y, B, A, X (PC: A, X, Z, S): chords 5 to 8.
  3. The beat keeps going. The chord changes on the next beat, or on the next bar if you set it so.
  4. To choose when it changes, hold L2 and press LEFT/RIGHT. This is CHANGE ON: NEXT BEAT or NEXT BAR.
  5. For a ready-made chord walk, hold L2 and press UP/DOWN until you see PROG 1 to PROG 4. Each walk lasts 8 bars and repeats. Choose HOLD to go back to picking chords yourself.
  6. SELECT (PC: Backspace) changes how the chord is played (the style): offbeat stabs, arpeggios and so on.

The CHORDS page with PROG 1 walking through the chords.

If you pick a chord by hand while a PROG runs, the screen shows OVERRIDE until the end of the 8-bar phrase.

On the other pages (not PARTS), X (PC: S) and Y (PC: A) step to the next or previous chord, or to the next or previous PROG while one runs.

In CHORD mode

  1. Open the menu with MENU (PC: Esc). Move to Mode and press RIGHT until it says CHORD. Close the menu.
  2. Press START (PC: Enter) to turn the beat on. The first time it is BRUSH. After that it resumes the last beat you used.
  3. To pick the beat, go to the BEAT page and press LEFT/RIGHT. The choices are OFF, BRUSH and LO-FI. UP/DOWN sets the beat level.
  4. Hold a chord button to play it. Let go and it rings out.

The BEAT page of CHORD mode.

More in 03-chord-mode.


How to record and overdub a chord loop

The loop only exists in CHORD mode. It records the chords you play, with their colour and inversion. It follows the tempo, so you do not need a beat.

Before you start: set your tempo and pick a chord set. See change the key, chord set or tempo.

Record

  1. Hold R2 (PC: 2). The loop row at the top shows REC: starts on the bar line in yellow.
  2. Wait for the next bar line. The row turns red and says RECORDING bar 1.
  3. Play your chords. Each press lands on the nearest 8th note. A tap lasts at least one 8th note.
  4. Keep R2 held for as many bars as you want. The most is 8.
  5. Let go of R2. The bar you are in finishes (REC: closing on the bar line). Then the loop plays from its start. The row shows LOOP n BARS in teal.

The loop row while recording bar 2.

The loop row while a four-bar loop plays.

If you let go of R2 before the bar line, the recording cancels. If you record no chord at all, the loop is dropped.

Each box in the loop row is one bar. It shows the chord at the start of that bar. A + means the chord changes more than once inside the bar. A white play head sweeps the bar that is playing.

Play over the loop

While the loop plays, hold a chord by hand. Your chord replaces the loop chord while you hold it. When you let go, the loop chord comes back.

Overdub

  1. While the loop plays, hold R2 again. The row says OVERDUB bar x of n in red.
  2. Starting at the next bar line, every bar that begins while R2 is held is replaced by what you play. A bar where you play nothing becomes a rest.
  3. Let go of R2. If you let go in the middle of a bar, that bar finishes, then everything plays normally.

Good to know:

  • The loop is not saved. It goes away when you change mode, choose New jam, or switch off.
  • A different colour for a chord? Hold the chord, then hold L2 and tap the d-pad. See 03-chord-mode.

How to clear a loop

  1. In CHORD mode, hold L2 (PC: Shift) and tap START (PC: Enter).
  2. The loop stops at once. This works on every page.
  3. If there is no loop, the loop row flashes NO LOOP TO CLEAR for a moment.

Other ways to clear it: Menu > New jam (this also resets everything else) or switching mode.


How to change the CHORD sound

In CHORD mode, the voice lives on the SOUND page.

  1. Go to CHORD mode (see above).
  2. Press R1 (PC: W) until the tab bar shows SOUND.
  3. LEFT/RIGHT: SOUND. The choices are:
    • SOFT: two detuned saw waves through a warm low-pass filter.
    • KEYS: an electric-piano-like tone.
    • GLASS: a bell-like pad with a slow shimmer.
    • STRINGS: wider and brighter, with slow vibrato.
  4. UP/DOWN: ATTACK, how fast a chord fades in (5 ms to 1.5 s).
  5. L2+LEFT/RIGHT: RELEASE, how long a chord rings after you let go (40 ms to 6 s).
  6. L2+UP/DOWN: BRIGHTNESS, dark to bright.

Other pages shape the way it plays:

  • STYLE page: PAD (notes sustain), STRUM (notes one after another), HARP (one note per 16th, climbing) or PULSE (the chord re-struck on every 8th). You can also press SELECT (PC: Backspace) on any page to step through the styles.
  • SPACE page: CHORUS, REVERB, ECHO and HAZE.
  • L2+R2 (PC: Shift+2): next inversion (ROOT, 1ST, 2ND, OPEN). An inversion changes which note of the chord is lowest.

The STYLE page of CHORD mode.

In TECHNO mode, the stab sound is on the CHORD page: UP/DOWN chooses PAD, GLASS, ORGAN or PULSE. Each genre sets its own, so it can change when you switch genre.


How to set volume, latency, brightness and dim

Volume

Press VOL+ or VOL- (PC: = and -). Each press moves the level by 5 %. This works even while the menu is open. On the Miyoo, the volume is saved about one second after you stop.

Latency, brightness and dim (Miyoo only)

  1. Tap MENU (PC: Esc) to open the menu.
  2. Press DOWN to the row you want. Press LEFT/RIGHT to change it.
    • Latency: SAFE, NORMAL or LOW. LOW has less delay but more risk of crackles. SAFE is the calmest. It takes effect after a restart. The menu tells you so in red.
    • Brightness: 1 to 10.
    • Dim when idle: OFF, 30 s or 2 min. After that time with no button press, the screen dims. The first press only wakes it up. It is not passed to the music.
  3. Press MENU or B (PC: X) to close the menu.

The Miyoo menu in TECHNO mode.

Latency, Brightness and Dim exist only on the Miyoo. On the PC and on the web, Volume and the = / - keys still work.

These five settings are saved and come back next time: volume, latency, brightness, dim and the mode (TECHNO or CHORD). The jam itself is never saved.


How to start a fresh jam or “Surprise me”

  1. Tap MENU (PC: Esc).
  2. Choose New jam and press A (PC: Z). A box asks New jam? A = yes, B = no. Press A.
  3. Every control goes back to the defaults of the current genre. The sample source goes back to LIVE. The music plays, and it lands on the next bar line. Your volume stays.

For something new that is still safe to play:

  1. Tap MENU, choose Surprise me, press A, then A again to confirm.
  2. You get a fresh key, chord set, chord style, progression, tempo (112 to 128 BPM), haze and chord sound. Sometimes (3 times in 8) it also picks a new genre.
  3. When it keeps the genre, it does not touch volume, levels, filters or swing. When it picks a new genre, that genre’s own sound (swing, levels, sends) comes with it, as with any genre switch. Your volume and ENERGY always stay. It cannot suddenly get too loud or go silent.

Surprise me exists only in TECHNO mode. In CHORD mode only New jam is there. It resets to the DREAMY set, key C and 84 BPM, and clears the loop.


How to add your own samples

GrainOS can play your own WAV files into the haze. The haze is a cloud of tiny grains cut from a sound. Normally it uses the last 8 seconds of the chords and pad. With a sample, it cuts grains from your file instead.

This works on the Miyoo and the PC build. It does not work on the web.

Put the files on the card

  1. Make WAV files: 16-bit PCM, mono or stereo, any sample rate.
  2. Put them in the grainos/samples/ folder on the SD card. (On a PC, use ./samples next to the program.)
  3. Eject the card, put it in the console, and switch on. The files are read only at start-up.

Limits:

  • Up to 16 files.
  • At least 0.1 seconds each.
  • Only the first 60 seconds of each file are used.
  • 40 MB of memory in total for all samples.
  • The name on screen is the file name without .wav.

Use them

  1. Open the HAZE page to hear and shape the haze. Make sure the AMOUNT is up.
  2. Hold L2 (PC: Shift) and tap SELECT (PC: Backspace). The source steps from LIVE to sample 1, sample 2 and so on, then back to LIVE. The haze strip shows SAMPLE n/N: name.
  3. Or use the menu: Menu > Samples shows the list. Press A on the one you want. A star marks the current one.

If no files loaded, the Samples row is hidden and L2+SELECT does nothing.

The L2+SELECT shortcut works only in TECHNO mode. A sample chosen in Menu > Samples (in either mode) also feeds the haze in CHORD mode. Pick LIVE to hear your chords in the haze again.


How to update a card without formatting

You do this on a computer, in a terminal, in the GrainOS project folder. Never format the card for an update. Formatting erases your settings and logs.

These are the Linux commands. For Windows and Mac, see docs/DEVICE-TEST.md.

  1. Build the new card files: make miyoo-docker && make miyoo-check && make card. The first time, run make toolchain before that. A Wi-Fi warning about 8188fu.ko is fine.
  2. Plug the card into the computer. It is called GRAINOS.
  3. Save the old logs, in case you need them: mkdir -p ~/grainos-logs/$(date +%F-%H%M) Then copy report-*.txt, grainos.log* and BUILD.txt from the card’s grainos/ folder into it.
  4. Copy the new files over the old ones: cp -r dist/sdcard/. /run/media/$USER/GRAINOS/ Then run sync. The dot after sdcard/ matters. It includes the hidden .tmp_update folder.
  5. Check that it worked: cat /run/media/$USER/GRAINOS/grainos/BUILD.txt should name the new build.
  6. Eject: udisksctl unmount -p /run/media/$USER/GRAINOS.

The copy replaces the program and the audio settings file. It keeps your menu settings (settings.cfg), your samples and your logs.


How to get back to your Onion games

GrainOS never changes the console’s internal memory. It lives on its own SD card.

Choose one:

  • Use your normal game card. Put it in the console and switch on. Nothing else is needed.
  • Keep GrainOS on the card but turn it off. On the GrainOS card, rename the hidden folder .tmp_update to tmp_update_off. Your console starts normally. To use GrainOS again, rename it back to .tmp_update.

To switch GrainOS off on the console first: hold MENU for 1 second, or choose Menu > Power off. The screen says POWERING OFF… and the console shuts down.


What to do if there is no sound, crackles, or it will not boot

No sound

  1. Check the headphones are plugged in. Turn the console volume up with VOL+.
  2. Check the screen. If it says STOPPED, press START (PC: Enter).
  3. Check ENERGY on the PLAY page. At 0 you hear only the pad and haze. Press UP to add parts.
  4. Open the PARTS page. A part marked MUTED or OFF is silent. Press A, B, X or Y to switch the main four back on.
  5. In CHORD mode, nothing sounds until you hold a chord button.
  6. On the web: click the player once so it has focus, and check that your phone’s silent switch is off (iOS mutes web audio when it is on).

Crackles or clicks

  1. Open Menu > Latency and choose SAFE. Restart the console.
  2. Check the DSP number in the bottom line. It shows how busy the processor is. If it is very high, lower ENERGY or use a calmer genre.
  3. Try Menu > Device > Safe mode ON. It makes the sound mono and the buffer bigger. Restart.

It will not boot

  1. Wait. The first boot of a card runs a self-test and takes 1 to 2 minutes.
  2. If the screen stays black twice in a row, GrainOS turns on safe mode by itself on the next start. Safe mode is deliberate. The sound is mono, with a bigger buffer, so you can still play.
  3. If the program stops with an error, the console tries again, up to three times. Then it powers off so you are not stuck.
  4. If it is frozen, hold the console’s power button for about 10 seconds.
  5. To leave safe mode: Menu > Device > Safe mode OFF, then restart.
  6. If nothing works, send the logs (next section).

The Device screen, with Run self-test and Safe mode.

The Device screen shows battery, the DSP load and the build name. Note: the Build line may still show the label p6. That label is old and is not a problem.


How to send a self-test report

The self-test measures memory, drawing speed, engine load, 30 seconds of audio and how late your button presses are noticed. It writes a report on the card.

Run it

  1. Tap MENU to open the menu. Go to Device and press A.
  2. Choose Run self-test and press A.
  3. Wait. When the bottom line says AUDIO TEST, tap a few buttons (not MENU held). That measures press delay.
  4. The result is a big SELFTEST PASS, WARN or FAIL, with reasons. WARN is normal on a first run. Press A or START to go back to the jam.

It runs by itself only on the first boot of a new card. To run it at boot again, delete the file grainos/first_boot_done on the card. The self-test takes 1 to 2 minutes.

Send it

  1. Switch off GrainOS with MENU held for 1 second. Take the card out.
  2. Open the grainos/ folder on the card.
  3. Send these files:
    • report-*.txt (the self-test reports; the number counts up)
    • grainos.log (and grainos.log.old if it exists)
    • BUILD.txt
    • audio.cfg.safe-note.txt, only if it exists
  4. Add one line about what went wrong: what you pressed, and what you heard or saw.

On a PC, make selftest runs a quick version in about 25 seconds. The logs go in the folder you started from.