alda-lang / alda-core

The core machinery of Alda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI --from/--to and REPL :from/:to seem to have stopped working

daveyarwood opened this issue · comments

I think there may have been a regression at some point, causing the from/to functionality not to work as expected. I recall that the from/to options initially worked when we implemented them.

Steps to Reproduce

CLI

$ alda play -f examples/bach_cello_suite_no_1.alda --from 0:05 --to 0:10

REPL

> :load ~/code/alda-core/examples/bach_cello_suite_no_1.alda
This action will overwrite the current score. Continue?
(y)es, (n)o
c> :play from 0:05 to 0:10

Expected Behavior

You hear playback starting from 5 seconds into the score and stopping at 10 seconds into the score.

Actual Behavior

CLI

You hear what sounds like the beginning of the score up to 10 seconds(?) into the score.

REPL

You hear the entire score.