~rabbits/orca-toy

55a9c1168173c4714f716ef079ea2e0050e74340 — neauoire 1 year, 5 months ago 06f3d98
Fixed issue where orca could send to non instrument devices
1 files changed, 2 insertions(+), 1 deletions(-)

M src/main.tal
M src/main.tal => src/main.tal +2 -1
@@ 52,6 52,7 @@

%TOS  { #00 SWP }
%MOD  { DIVk MUL SUB } %MOD2 { DIV2k MUL2 SUB2 }
%4MOD { #03 AND }

%RTN  { JMP2r }
%BRK? { #01 JCN BRK } %RTN?  { #01 JCN RTN }


@@ 1076,7 1077,7 @@ RTN
	( get note ) DUP2 [ SWP #03 + SWP ] GET-PORT-RIGHT-RAW 
		( req note ) DUP CHAR-DOT ! ,&is-active JCN [ POP POP2 POP2r RTN ] &is-active GET-NOTE STH ADDr
	( req bang ) DUP2 ;get-bang JSR2 ,&is-bang [ JCN POP2 POP2r RTN ] &is-bang
	STHr .Audio0/pitch STHr 10* + DEO
	STHr .Audio0/pitch STHr 4MOD 10* + DEO
	IO-TYPE SET-TYPE

RTN