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

check duration of sent notes from PerformerPhausto(Mooflod) #48

Open
lucretiomsp opened this issue Nov 20, 2024 · 0 comments
Open

check duration of sent notes from PerformerPhausto(Mooflod) #48

lucretiomsp opened this issue Nov 20, 2024 · 0 comments

Comments

@lucretiomsp
Copy link
Owner

please check this method, as it looks like to avoid overlapping notes, duration gate must be equal to 0.5

playPhaustMooflodEventAt: anIndex
	"sends a message to Phausto / the DSP api must be written in a sensible way "

	| dur stepDuration assignedDsp |
	assignedDsp := Performance uniqueInstance activeDSP.
	stepDuration := Performance uniqueInstance freq asFloat.

	" please use also duration for gate !!! - future implementation"
	dur := self durations asDirtArray wrap: anIndex.

	self extraParams keysAndValuesDo: [ :k :v |
		assignedDsp
			setValueMooflod: (v wrap: anIndex)
			parameter: self seqKey , k asString ].

	assignedDsp
		setValueMooflod: (self notes wrap: anIndex) midiNoteToFreq
		parameter: self phaustNoteDestination. "convert note Number to Frequency"
	"as in early sequencers, standard gate time is 80% of duration"
	assignedDsp
		trigMooflod: self phaustGateDestination
		for: dur * stepDuration * 0.5.
	

	^ true
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