Skip to content

Commit

Permalink
add pickup, drop, and motion sounds for ruler, see phetsims/gravity-f…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Nov 26, 2019
1 parent d9f20c1 commit 4a7a0a1
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 17 deletions.
Binary file added assets/click-001.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions js/shared-sound-players/grabSoundPlayer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2019, University of Colorado Boulder

/**
* shared sound generator for picking something up, uses the singleton pattern
*
* @author John Blanco (PhET Interactive Simulations)
*/
define( require => {
'use strict';

// modules
const SharedSoundClip = require( 'TAMBO/sound-generators/SharedSoundClip' );
const tambo = require( 'TAMBO/tambo' );

// sounds
const grabSoundInfo = require( 'sound!TAMBO/grab-v2.mp3' );

// create the shared sound instance
const grabSoundPlayer = new SharedSoundClip( grabSoundInfo, { initialOutputLevel: 0.7 } );

return tambo.register( 'grabSoundPlayer', grabSoundPlayer );
} );
22 changes: 22 additions & 0 deletions js/shared-sound-players/releaseSoundPlayer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2019, University of Colorado Boulder

/**
* shared sound generator for releasing something, uses the singleton pattern
*
* @author John Blanco (PhET Interactive Simulations)
*/
define( require => {
'use strict';

// modules
const SharedSoundClip = require( 'TAMBO/sound-generators/SharedSoundClip' );
const tambo = require( 'TAMBO/tambo' );

// sounds
const releaseSoundInfo = require( 'sound!TAMBO/release-002.mp3' );

// create the shared sound instance
const releaseSoundPlayer = new SharedSoundClip( releaseSoundInfo, { initialOutputLevel: 0.7 } );

return tambo.register( 'releaseSoundPlayer', releaseSoundPlayer );
} );
23 changes: 23 additions & 0 deletions js/shared-sound-players/softClickSoundPlayer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2019, University of Colorado Boulder

/**
* shared sound generator that produces a soft click, often used to produce discrete sounds for some continuous
* quantity, uses the singleton pattern
*
* @author John Blanco (PhET Interactive Simulations)
*/
define( require => {
'use strict';

// modules
const SharedSoundClip = require( 'TAMBO/sound-generators/SharedSoundClip' );
const tambo = require( 'TAMBO/tambo' );

// sounds
const softClickSoundInfo = require( 'sound!TAMBO/click-001.mp3' );

// create the shared sound instance
const softClickSoundPlayer = new SharedSoundClip( softClickSoundInfo, { initialOutputLevel: 0.2 } );

return tambo.register( 'softClickSoundPlayer', softClickSoundPlayer );
} );
Binary file added sounds/click-001.mp3
Binary file not shown.
43 changes: 26 additions & 17 deletions sounds/license.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,47 @@
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"07_Button_Reset_All_v3-16-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"07_Button_Reset_All_v3-24-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"07_Button_Reset_All_v3-48-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"07_Button_Reset_All_v3-64-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"07_Button_Reset_All_v3-128-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"20180213_Bright_Marimba-128-kbps-stereo.mp3": {
"text": [
Expand Down Expand Up @@ -157,79 +157,88 @@
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"Charges_In_Body_Better_Loop-48-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"Charges_In_Body_Better_Loop-64-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"Charges_In_Body_Better_Loop-24-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"Charges_In_Body_Better_Loop-16-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"Charges_In_Body_Better_Loop-8-kbps-mono.mp3": {
"text": [
"Copyright 2002-2018 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"checkbox-checked.mp3": {
"text": [
"Copyright 2002-2019 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for use by PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"checkbox-unchecked.mp3": {
"text": [
"Copyright 2002-2019 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for use by PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"click-001.mp3": {
"text": [
"Copyright 2002-2019 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},

"combo-box-close.mp3": {
"text": [
"Copyright 2002-2019 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for use by PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"combo-box-open.mp3": {
"text": [
"Copyright 2002-2019 University of Colorado Boulder"
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for use by PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"crickets-loop.mp3": {
"text": [
Expand Down Expand Up @@ -413,7 +422,7 @@
],
"projectURL": "http://phet.colorado.edu",
"license": "contact [email protected]",
"notes": "created by Ashton Morris for use by PhET"
"notes": "created by Ashton Morris (PhET Interactive Simulations)"
},
"rhodes-chord.mp3": {
"text": [
Expand Down

0 comments on commit 4a7a0a1

Please sign in to comment.