This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ABCplayerCodea version 0.1.3 | |
-- Plays ABC musical notation format tunes on the Codea/Codify iPad platform. | |
-- By Fred Bogg, November 2011. Improvements welcome. Thanks to ipda41001 for coding assistance. | |
-- This program defines musical notes and chords, parses an ABC format tune, creates a table | |
-- of notes to be played with their durations, and then plays it. With the parsing done | |
-- first, playback is possible without slowing down draw frames (psuedo-background). | |
-- 0.1.3 | |
-- Added sharps to central octave. | |
-- Amended pattern to detect notes with sharps. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ABCplayerCodea version 0.1.4 | |
-- Plays ABC musical notation format tunes on the Codea/Codify iPad platform. | |
-- By Fred Bogg, November 2011. Improvements welcome. Thanks to ipda41001 for coding assistance. | |
-- This program defines musical notes and chords, parses an ABC format tune, creates a table | |
-- of notes to be played with their durations, and then plays it. With the parsing done | |
-- first, playback is possible without slowing down draw frames (psuedo-background). | |
-- 0.1.4 | |
-- added fromTheTop() (a rewind) | |
-- added demo touched function to demo fromTheTop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Scale. This script makes a diatonic keyboard that plays polyphonically | |
-- By Fred. | |
-- v1.0 | |
-- Use this function to perform your initial setup | |
function setup() | |
notes={c3=85,d3=321,e3=48,f3=63,g3=60,a3=68,b3=11,c4=84} | |
scale={"c3","d3","e3","f3","g3","a3","b3","c4"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Play Music. This plays polyphonically, using the draw function and a frame counter for timing. | |
-- By Fred. | |
-- Use this function to perform your initial setup | |
function setup() | |
-- initialise variables and clear screen | |
frame = 0 | |
measure = 1 | |
tuneLength = 0 |
NewerOlder