Skip to content

Comments

Abstract Common p5.sound.js Functionality#59

Merged
ogbabydiesal merged 38 commits intoprocessing:developfrom
pparocza:refactor/abstract-common-functionality
Aug 12, 2025
Merged

Abstract Common p5.sound.js Functionality#59
ogbabydiesal merged 38 commits intoprocessing:developfrom
pparocza:refactor/abstract-common-functionality

Conversation

@pparocza
Copy link

@pparocza pparocza commented Jul 31, 2025

Create base classes to abstract repeated functionality

P5SoundContext

  • Constant Audio Context wrapping ToneContext()

P5SoundUtils

  • Constant Utilities

P5SoundObject

  • Base class from which all p5.sound.js objects inherit

P5SoundParameter

  • Handle setting and connection of Audio Parameter values

P5SoundNode

  • Base class for all audio nodes, abstracting output, connection, and volume setting
  • Children: P5SoundSourceNode P5SoundEffectNode P5SoundAnalyzerNode

P5SoundSourceNode

  • Base class for any P5SoundNode that only requires an output
  • Children: P5SoundAudioIn

P5SoundStartableSourceNode

  • Base class for any P5SoundSourceNode that requires start and stop functionality
  • Children: P5SoundOscillator P5SoundFile P5SoundNoise

P5SoundEffectNode

  • Base class for any P5SoundNode that requires both input and output
  • Children: P5SoundBiquad P5SoundEnvelope P5SoundGain P5SoundPanner P5SoundPanner3D

P5SoundMixEffectNode

  • Base class for any P5SoundEffectNode that provides a wet/dry mix
  • Children: P5SoundDelay P5SoundPitchShifter P5SoundReverb

P5SoundAnalyzerNode

  • Base class for any P5SoundNode that provides value outputs for audio inputs
  • Children: P5SoundAmplitude P5SoundFFT

@pparocza pparocza changed the title Abstract Common P5Sound Functionality Abstract Common p5.sound.js Functionality Jul 31, 2025
@pparocza
Copy link
Author

pparocza commented Jul 31, 2025

Per conversation with @ogbabydiesal, made the following changes:

@ksen0 ksen0 changed the base branch from main to develop August 6, 2025 16:40
@ogbabydiesal ogbabydiesal merged commit f28bb9f into processing:develop Aug 12, 2025
@pparocza pparocza deleted the refactor/abstract-common-functionality branch August 13, 2025 05:18
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

Successfully merging this pull request may close these issues.

2 participants