Skip to content
Permalink
Browse files

Documented queue

  • Loading branch information...
neauoire committed May 24, 2019
1 parent e51006c commit 763212d7e3517963c88df5c13bb0f5c209957452
Showing with 6 additions and 4 deletions.
  1. +2 −0 README.md
  2. +2 −2 desktop/sources/scripts/source.js
  3. +2 −2 desktop/sources/scripts/terminal.js
@@ -129,6 +129,8 @@ All commands have a shorthand equivalent to their first character, for example,

You can **quickly inject orca files** into the currently active file, by using the command-line prompt — Allowing you to navigate across multiple files like you would a project. Type `CmdOrCtrl+K` and the name of another `.orca` file, **located in the same folder** as the opened file, to paste it into the current patch.

If a file a local file `.queue` is found, each line will be ran as a command when the line number corresponding to the frame value is reached. For example, if your working file is named `project.orca`, the file `project.queue` will be loaded automatically as the file opens.

## Base36 Table

Orca operates on a base of **36 increments**. Operators using numeric values will typically also operate on letters and convert them into values as per the following table. For instance `Dp` will bang every *24th frame*.
@@ -91,7 +91,7 @@ export default function Source (terminal) {
this.load(fs.readFileSync(this.path, 'utf8'))

// Look for queue
const queue = path.join(this.folder(), 'queue.orca')
const queue = path.join(this.folder(), this.name() + '.queue')
if (fs.existsSync(queue)) {
this.queue = fs.readFileSync(queue, 'utf8').split('\n')
terminal.clock.resetFrame()
@@ -216,7 +216,7 @@ export default function Source (terminal) {
}

this.toString = function () {
return this.path ? this.name() : 'blank'
return this.path ? this.name() : 'unsaved'
}

function isDifferent (a, b) {
@@ -276,8 +276,8 @@ export default function Terminal () {

this.write(`${this.orca.w}x${this.orca.h}`, col * 0, this.orca.h, this.grid.w)
this.write(`${this.grid.w}/${this.grid.h}${this.tile.w !== 10 ? ' ' + (this.tile.w / 10).toFixed(1) : ''}`, col * 1, this.orca.h, this.grid.w)
this.write(`${this.source}`, col * 2, this.orca.h, this.grid.w)
this.write(`${this.clock}`, col * 3, this.orca.h, this.grid.w, this.io.midi.inputIndex > -1 ? 4 : 2)
this.write(`${this.source}`, col * 2, this.orca.h, this.grid.w, this.source.queue.length > terminal.orca.f ? 3 : 2)
this.write(`${this.clock}`, col * 3, this.orca.h, this.grid.w, this.io.midi.inputIndex > -1 ? 3 : 2)

if (this.orca.f < 15) {
this.write(`${this.io.midi}`, col * 4, this.orca.h, this.grid.w * 2)

0 comments on commit 763212d

Please sign in to comment.
You can’t perform that action at this time.