brucelevis / seqtoy

Toy music sequencer written in Nelua for RIV fantasy console

Home Page:https://emulator.rives.io/#cartridge=https://raw.githubusercontent.com/edubart/cartridges/main/seqtoy.sqfs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seqtoy

This is a tool for creating small music sequence loops to be used in small games. It's written in Nelua for RIV fantasy console.

You can try it in your browser here.

Screenshot

Sound loop examples

Here is a list of 10 sound loops created with this tool as examples, click on them to play in your browser, you can also mix them right-away.

Notes

Have in mind this is a sequencer toy, with emphasis on toy, it's NOT a goal to create a DAW (Digital Audio Workstation). However this tools is enough to create simple and interesting sound loops to be used in simple games.

As a toy, it has some intentional constraints to not make its users overwhelmed by so many options professional music sequencers have, these are some of them:

  • Sequence time span can have at most 112 notes
  • Only the notes in the D# Major Pentatonic are available to be played, so each note always sounds nice relative to another note
  • Can only have up to 4 pre-defined tracks with predefined instrument synthesizer (Strings, Lead, Bass and Drums)

Controls

You can only use the keyboard to use this tool. This is intentionally so it can be used with game pads and also on mobile in the future where there is no mouse.

The keyboard shortcuts are mapped in a way to be compatible with RIV gamepad mappings, so it can be a bit strange at first but it's a matter of getting used to it. You can view the controls by holding E or SELECT button gamepad button.

How it works

It plays simple audio waveforms (Sine, Square, Sawtooth, etc) for the instruments every frame, check the RIV documentation for more details about waveforms.

Compiling

First make sure you have the RIV SDK installed in your environment, then just type make to compile. You can also play it by typing make run.

About

Toy music sequencer written in Nelua for RIV fantasy console

https://emulator.rives.io/#cartridge=https://raw.githubusercontent.com/edubart/cartridges/main/seqtoy.sqfs


Languages

Language:Lua 95.1%Language:Makefile 4.9%