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

Frequent operations in performance #15

Open
Ignotus-mago opened this issue Jul 20, 2024 · 0 comments
Open

Frequent operations in performance #15

Ignotus-mago opened this issue Jul 20, 2024 · 0 comments

Comments

@Ignotus-mago
Copy link
Owner

Ignotus-mago commented Jul 20, 2024

Let's make a list for the LoadAudioToImage sample code:

  1. Open an audio file, load it to a buffer: audioFile and other locators
  2. Get a reference to the buffer audio array (or multiple arrays): audioBuffer
  3. Get a copy of the buffer array that is mapSize frames, padded or trimmed if necessary: audioSignal
  4. Transcode the signal to an RGB array in signal order: rgbSignal
  5. Write rgbSignal to an image for display: mapImage
  6. Click on display to trigger audio events with a SamplerInstrument: audioSampler, adsr, samplerInstrument
  7. Load audio from files to color channels of rgbSignal
  8. Write rgbSignal to audioSignal

Also desirable:

Save images and audio to image and audio files.
Load a piece of audio to the most recent samplerInstrument selection.
Windowed collage of audio/image.

For the most part, working with the signal path.

@Ignotus-mago Ignotus-mago changed the title Frequent operation in performance Frequent operations in performance Jul 20, 2024
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