Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip initialization for ATS #1722

Open
tjingboem opened this issue Jul 11, 2023 · 1 comment
Open

skip initialization for ATS #1722

tjingboem opened this issue Jul 11, 2023 · 1 comment

Comments

@tjingboem
Copy link
Member

tjingboem commented Jul 11, 2023

to tie notes, would it be possible to be able to skip initialization for ATS opcodes, like ATSadd, ATSadnz(?), ATSsinnoi?
Would that make sense?

@tjingboem tjingboem changed the title no reinitialization for ATS skip initialization for ATS Jul 17, 2023
@tjingboem
Copy link
Member Author

Here is an example where a not existing skip parameter is commented out (-1)
I'm not sure what this initialization skipping could look like in the case of these ATS opcodes, but they are oscillators so perhaps it may work.

<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-odac     ;;;RT audio out
;-iadc    ;;;uncomment -iadc for RT audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o ATSadd.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

; by Menno Knevel - 2021
;ATSA wants a mono file!
ires system_i 1,{{ atsa fox.wav fox.ats }} ; default settings

instr 1	
; synthesize 30 partials, using a ipartialoffset of 0 and ipartialincr of 2, 
; which means that we will start from the first partial and synthesize 30 partials in total, 
; skipping every other one (ie. partial 1, 3, 5,..).
ktime	line	0, p3, 2.756
asig	ATSadd	ktime, 1,  "fox.ats", 1, 30, 0, 2, 0 ;,-1 to skip initialization
	outs	asig*2.5, asig*2.5	;amplify

endin


</CsInstruments>
<CsScore>
f 1 0 16384 10 1 0 .5 0 .3 0 .15    ;square wave

i 1 0 -1
i 1 3 -1
i 1 6 -1 
i 1 10 2.756 
e
</CsScore>
</CsoundSynthesizer>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant