Pure Data Reference Card Tables Audio Oscillators and Tables Karim Barkati – December 12, 2010 tabread read a number from a table phasor˜ sawtooth oscillator tabread4 read with 4 point interpolation Modes cos˜ cosine tabwrite write a number to a table osc˜ cosine oscillator ctl-e (or cmd-e) toggle between run mode (performance) and edit soundfiler read and write tables to soundfiles tabwrite˜ write to a table mode (programming); this affects how mouse clicks affect the patch. Misc tabplay˜ play back from a table (non-transposing) tabread˜ non-interpolating table read bang on load Glue loadbang tabread4˜ four-point interpolating table read serial device control for NT only serial tabosc4˜ wavetable oscillator bang output a bang message send messages over the internet netsend tabsend˜ write one block continuously to a table float store and recall a number receive them netreceive tabreceive˜ read one block continuously from a table symbol store and recall a symbol qlist text-based message sequencer int store and recall an integer textfile file to message converter Audio Filters send send a message to a named object openpanel "Open" dialog receive catch "sent" messages savepanel "Save as" dialog vcf˜ voltage controlled filter select test for matching numbers or symbols bag set of numbers noise˜ white noise generator route route messages according to first element poly polyphonic voice allocation env˜ envelope follower (RMS amplitude in dB) pack make compound messages key, keyup numeric key values from keyboard hip˜ high pass filter unpack get elements of compound messages keyname symbolic key name lop˜ low pass filter trigger sequence and convert messages bp˜ band pass filter spigot interruptible message connection Audio Math biquad˜ raw filter (2 poles and 2 zeros) moses part a numeric stream +˜ -˜ *˜ /˜ arithmetic on audio signals samphold˜ sample and hold unit until looping mechanism ˜ min˜ maximum or minimum of 2 inputs print˜ print out one or more "blocks" print print out messages clip˜ constrict signal to lie between two bounds rpole˜ raw real-valued one-pole filter makefilename format a symbol with a variable field q8_rsqrt˜ cheap reciprocal square root (beware 8 bits!) rzero˜ raw real-valued one-zero filter change remove repeated numbers from a stream q8_sqrt˜ cheap square root (beware 8 bits!) rzero_rev˜ time-reversed rzero˜ swap swap two numbers wrap˜ wraparound (fractional part, sort of) cpole˜ czero˜ czero_rev corresponding complex-valued filters value shared numeric value fft˜ complex forward discrete Fourier transform ifft˜ complex inverse discrete Fourier transform Audio Delay Time rfft˜ real forward discrete Fourier transform real inverse discrete Fourier transform delwrite˜ write to a delay line delay send a message after a time delay rifft˜ estimate frequency and amplitude of FFT compo- delread˜ read from a delay line metro send a message periodically framp˜ nents vd˜ read from a delay line at a variable delay time line send a series of linearly stepped numbers timer measure time intervals mtof˜ ftom˜ rmstodb˜ dbtorms˜ acoustic conversions Subwindows cputime measure CPU time rmstopow˜ powtorms˜ realtime measure real time Audio Glue pd define a subwindow pipe dynamically growable delay line for messages table array of numbers in a subwindow dac˜ audio output inlet add an inlet to a pd Math adc˜ audio input outlet add an outlet to a pd sig˜ convert numbers to audio signals inlet˜ outlet˜ signal versions of inlet and outlet + - * / pow arithmetic line˜ generate audio ramps == != > < >= <= relational tests vline˜ deluxe line˜ Data Templates & && | || % bit twiddling threshold˜ detect signal thresholds mtof ftom powtodb rmstodb convert acoustical units snapshot˜ sample a signal (convert it back to a number) struct define a data structure dbtopow dbtorms vsnapshot˜ deluxe snapshot˜ drawcurve, filledcurve draw a curve mod div sin cos tan atan higher math bang˜ send a bang message after each DSP block drawpolygon, filledpolygon draw a polygon atan2 sqrt log exp abs samplerate˜ get the sample rate plot plot an array field random expr lower math send˜ nonlocal signal connection with fanout drawnumber print a numeric value max min greater or lesser of 2 numbers receive˜ get signal from send˜ clip force a number into a range throw˜ add to a summing bus Accessing Data catch˜ define and read a summing bus Midi block˜ specify block size and overlap pointer point to an object belonging to a template switch˜ switch DSP computation on and off get get numeric fields MIDI input notein ctlin pgmin bendin touchin readsf˜ soundfile playback from disk set change numeric fields polytouchin midiin sysexin writesf˜ record sound to disk element get an array element noteout ctlout pgmout bendout touchout MIDI output getsize get the size of an array polytouchout midiout Copyright 2010 Karim Barkati . Permission is granted setsize change the size of an array to copy, distribute and/or modify this document under the terms of the GNU Free makenote send note-on messages and schedule note-off for later Documentation License, Version 1.3 or any later version published by the Free append add an element to a list stripnote strip note-off messages Foundation; with no Invariant Sections, no Front-Cover Texts, and no sublist get a ptr into a list which is an elemt of another scalar Back-Cover Texts.