Giter VIP home page Giter VIP logo

coypurecorder's Introduction

CoypuRecorder

Install the package:

Use this in a playground:

Metacello new
	repository: 'github://RedwaneEngels/CoypuRecorder:main/src';
	baseline: 'CoypuRecorder';
	load

Exemples of uses:

Exemple of a Performance with a displayer writting the script back in the transcript:

|p k|
p := PerformanceRecorder uniqueInstance .
p performer: PerformerSuperDirt new. 

p freq: 138 bpm. 

16 downbeats to: #bd.
16 upbeats to: #hh; dirtNotes: '4'.

p playFor: 512 bars.

'080808080809' hexBeat to: #cp.	

'lt ~ ~ mt ~ ~ ht ~ lt ~ mt ~ ~ ~' asDirtSounds to: #toms.

#(3 16) euclidean to: #blip.

p solo: #blip.

16 semiquavers to: #can.

p unsolo: #blip.

p mute: #toms.

'0 1 2 3 12' asDirtNotes to: #bass3.

p stop.

k := PerformanceTextualDisplayer new visitAPerformanceRecorder: p.
k displayInTranscript.

Exemple of another Performance with a displayer writting the script back in a txt file:

|p k|
p := PerformanceRecorder uniqueInstance .
p performer: PerformerSuperDirt new. 

p freq: 128 bpm.

16 downbeats to: #cp.

p playFor: 4  bars.

' 0 3 7 10 12 -10 ' asDirtNotes to: #superchip.

p playFor: 8  bars.

' 0 ~ ~ 3 -12 4 ~ ~ 7 ~ 11'  asDirtNotes to: #superchip.
p playFor: 8  bars.

'-12*6 , ~ , 5 * 2 , ~ , 2 *5 , ~*2' asDirtNotes to: #superchip.
p playFor: 8  bars.

p mute: #superchip .

' 4 / 16 ,  6 / 16 , 7 /16 , 9 /16' asDirtNotes  to: #supersaw.
p playFor: 16 bars.

4 semibreves dirtNotes: '4 6 7 9'; to: #supersaw .
p playFor: 16 bars.

p mute: #supersaw.

#(7 16) euclidean dirtNotes: '-10 9 5 -2'; to: #superhex.
p playFor: 16 bars.

k := PerformanceTextualDisplayer new visitAPerformanceRecorder: p.
k writeScriptInTxtFile.

coypurecorder's People

Contributors

redwaneengels avatar ducasse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.