Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ideoforms/signalflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Dec 10, 2024
2 parents f2197d1 + 0b49926 commit f3cd26f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion auxiliary/cibuildwheel/make-raspberry-pi-aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#--------------------------------------------------------------------------------
# Build script for Raspberry Pi, which creates Linux/arm builds.
# Tested on Raspberry Pi 4 running Raspberry Pi OS circa October 2024
# Requires pyenv, which requires libffi-dev to build Python with ctypes support.
#
# May be ultimately better to switch to this arm runner action:
Expand Down Expand Up @@ -33,4 +34,6 @@ do
done

pip3 install build auditwheel
auditwheel repair --plat manylinux_2_34_aarch64 dist/*.whl
cd dist
mkdir -p fixed
auditwheel repair *.whl -w fixed --plat manylinux_2_34_aarch64
7 changes: 6 additions & 1 deletion examples/audio-through-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@


def main():
print("Audio playthrough: Plays the microphone input through the default output")
print("Listen through headphones to avoid feedback")

graph = AudioGraph()

#--------------------------------------------------------------------------------
Expand All @@ -18,12 +21,14 @@ def main():
# [audio]
# input_device_name = "My Device"
#--------------------------------------------------------------------------------
audio_in = AudioIn(1)
audio_in = AudioIn()
audio_in = audio_in[0]

#--------------------------------------------------------------------------------
# Add some delay, and play
#--------------------------------------------------------------------------------
output = audio_in
output = output + CombDelay(output, 0.1, feedback=0.8)
stereo = StereoPanner(output)

graph.play(stereo)
Expand Down
7 changes: 4 additions & 3 deletions examples/granulation-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ def main():
#------------------------------------------------------------------------
# Load an audio buffer.
#------------------------------------------------------------------------
audio_path = os.path.join(os.path.dirname(__file__), "audio", "gliss.aif")
audio_path = os.path.join(os.path.dirname(__file__), "audio", "stereo-count.wav")
buf = Buffer(audio_path)
clock = RandomImpulse(50)
grain_frequency = WhiteNoise(frequency=2, min=1, max=50)
clock = RandomImpulse(grain_frequency)
granulator = Granulator(buffer=buf,
clock=clock,
pan=RandomUniform(-1, 1, clock=clock),
Expand All @@ -35,4 +36,4 @@ def main():
graph.wait()

if __name__ == "__main__":
main()
main()

0 comments on commit f3cd26f

Please sign in to comment.