Laptop Instrument Programming a Tune.

Slides:



Advertisements
Similar presentations
Rest Duration Ms. Delgados Music Class. Rest Duration A Whole Rest receives four full beats.
Advertisements

Bellringer – Day 8 1)What is duration in music? 2)What is pitch in music? 3)What is your favorite color?
Music. Scale A series of notes differing in pitch according to a specific scheme An octave (eight notes)
Creating Selections 1. Memory locations 2. Timeline selection markers 3. Regions.
3rd Grade Music Book.
Pitch Pitch can be described as being how high or low the sound is heard. Pitch is determined by the speed or frequency of the vibration which is causing.
Musical Instruments. Standing Waves  Waves that reflect back and forth interfere.  Some points are always at rest – standing waves.
Sound Representation Digitizing Sound Sound waves through Air Different Voltages Voltage converted to numbers.
Sound Quality.
SpringerLink Training Kit
Luminosity measurements at Hadron Colliders
Evolving Architecture for Beyond the Standard Model
CMSC423: Bioinformatic Algorithms, Databases and Tools
Some aspect concerning the LMDZ dynamical core and its use
Bayesian Confidence Limits and Intervals
HERMESでのHard Exclusive生成過程による 核子内クォーク全角運動量についての研究
داده کاوی سئوالات نمونه
ლექცია 4 - ფული და ინფლაცია
10. predavanje Novac i financijski sustav
FLUORECENCE MICROSCOPY SUPERRESOLUTION BLINK MICROSCOPY ON THE BASIS OF ENGINEERED DARK STATES* *Christian Steinhauer, Carsten Forthmann, Jan Vogelsang,
Particle acceleration during the gamma-ray flares of the Crab Nebular
Chapter 6 并发:死锁和饥饿 Operating Systems: Internals and Design Principles
Measure Twice and Cut Once: Robust Dynamic Voltage Scaling for FPGAs
Topic 5: Sequences and Series
Virtual Memory II CSE 351 Spring 2017
Topic 1 Applications of Physics
Machine learning tehniques for credit risk modeling in practice
Lower bounds against convex relaxations via statistical query complexity Based on: V. F., Will Perkins, Santosh Vempala. On the Complexity of Random Satisfiability.
Hodgkin-Huxley David Wallace Croft, M.Sc. Atzori Lab, U.T. Dallas
Gravitation and Cosmology I Introduction to Cosmology
Emmanuel Mouche, Marie Alice Harel (LSCE)
Elementary Particle Physics
Technologies Needed for Fusion DEMO and the Role of International Collaboration Mohamed Abdou Distinguished Professor of Engineering and Applied Science.
Method to promote adhesion of DLC thin film on silicon substrate
Hold and Sign: A Novel Behavioral Biometrics for Smartphone User Authentication Presented by: Dhruva Kumar Srinivasa Team-mate: Nagadeesh Nagaraja.
The content of this presentation is provided by

Which of these arrows is closest to your original guess?
The Rescorla-Wagner Learning Model (and one of its descendants)
APPLIED FLUID MECHANICS
Varun Kelkar Mentors: Eric Quintero and Rana Adhikari
Financing the SDGs in the Pacific
Numeracy with the Romans
IPM Simulations at Fermilab
Lecture 2 Money and inflation.
Physics 7E Prof. D. Casper.
Gluonium content of the h'
Sealed-Glass Proofs: What can we do with SGX without confidentiality?
Digital Filtering Convolution of time series
The Nature of Matter and Radioactivity
ANTENNA FACTOR CALIBRATION TECHNIQUES
Ethernet transport protocols for FPGA
Modeling of mismatch losses due to partial shading in PV plants with custom modules Gianluca Corbellini
Measurement of formation cross-sections and decay properties for short-lived isomers produced in photonuclear interactions Justin Delaney | CSIRO & University.
19. Inference about a population proportion
Transfer Learning.
Outline Overview Shiny Tools & Statistical Methods Q/A.
Forecasting Punjab Revenue and Expenditure
Natural Language Understanding with Common Sense Reasoning
Review – Standing Waves
SOUND ORGANIZED IN TIME
Chapter 8 Arrays Objectives
Articulation for Wind Players
Laptop Instrument Meeting 22 April 11, 2018.
Laptop Instrument Meeting 4 January 29, 2018.
Laptop Instrument Meeting 7 February 7, 2018.
Rhythmic Stability Mitch, Ronan, Bokum.
Ms. Delgado’s Music Class
Laptop Instrument Meeting 14 March 12, 2018.
Creating Sounds and MIDI
Presentation transcript:

Laptop Instrument Programming a Tune

Program Sections Instrument Note names Duration array Tune array Play loop

Instruments The clarinet // Define the instrument Clarinet Benny => dac; //patch the unit generator to the dac // Wet the reed, attach the reed, set the embouchure, etc. 0.3 => Benny.reed; //reed stiffness 0.1 => Benny.noiseGain; 8.0 => Benny.vibratoFreq; 0.4 => Benny.vibratoGain; 0.2 => Benny.pressure;

Note Names Define pitch names based on MIDI designations The note segment, created from the note spreadsheet

Duration Array Set the tempo Define an array of durations 120 => int tempo; // marching tempo Define an array of durations dur duration[20];

Duration Array (2) Set the durations based on the tempo Etc. //quarter note duration * relative note length (1::minute/tempo) * (4./1) => duration[1]; // whole note (1::minute/tempo) * (4./2) => duration[2]; // half note (1::minute/tempo) * (4./4) => duration[4]; // quarter note Etc.

Tune Array Chuck the tune as an array of pairs of integers to the tune array. Start with C major scale with half notes. [[C4,2],[D4,2],[E4,2],[F4,2],[G4,2],[A5,2] [[B5,2],[C5,2]]@=> int Tune[][]; First integer of a pair is the MIDI note number, represented by its name. Second integer of a pair is the index of the note duration in the duration array.

Play Loop Define a loop that plays each note in turn for( 0 => int i; i < Tune.cap(); i++) { Std.mtof(Tune[i][0]) => benny.freq; //convert MIDI note number to frequency 1.0 => benny.noteOn; //attack the note duration[Tune[i][1]] => now; 1.0 => benny.noteOff; }

Play Loop – Try 2 Define a loop that plays each note in turn Include note spacing for( 0 => int i; i < Tune.cap(); i++) { Std.mtof(Tune[i][0]) => benny.freq; //convert MIDI note number to frequency 1.0 => benny.noteOn; //attack the note duration[Tune[i][1]] => now; 1.0 => benny.noteOff; 5::ms => now; //set note spacing }