Skip to content

Commit 1a25137

Browse files
authored
Merge pull request #265 from processing/master
update gh-pages branch
2 parents e8dafe0 + dbda330 commit 1a25137

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+11079
-4398
lines changed

.DS_Store

-6 KB
Binary file not shown.

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig: http://EditorConfig.org
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# Rules for JavaScript files:
7+
8+
[*.js]
9+
# 2 space indentation
10+
indent_style = space
11+
indent_size = 2
12+
# No trailing spaces
13+
trim_trailing_whitespace = true
14+
# Unix-style newlines
15+
end_of_line = lf
16+
# Newline ending every file
17+
insert_final_newline = true

Gruntfile.js

Lines changed: 51 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,25 @@ module.exports = function(grunt) {
22

33
grunt.initConfig({
44
pkg: grunt.file.readJSON('package.json'),
5-
jshint: {
6-
build: {
7-
options: {jshintrc: '.jshintrc'},
8-
src: ['Gruntfile.js']
9-
},
5+
6+
// Configure style consistency
7+
eslint: {
108
source: {
11-
options: {jshintrc: 'src/.jshintrc'},
9+
options: {configFile: './src/.eslintrc'},
1210
src: ['src/**/*.js']
13-
},
14-
test: {
15-
options: {jshintrc: 'test/.jshintrc'},
16-
src: ['test/unit/**/*.js']
17-
}
18-
},
19-
yuidoc: {
20-
compile: {
21-
name: '<%= pkg.name %>',
22-
description: '<%= pkg.description %>',
23-
version: '<%= pkg.version %>',
24-
url: '<%= pkg.homepage %>',
25-
options: {
26-
paths: ['src/'],
27-
//helpers: [],
28-
themedir: 'docs/yuidoc-p5-theme/',
29-
outdir: 'docs/reference/'
30-
}
3111
}
3212
},
3313
watch: {
3414
// p5 dist
3515
main: {
3616
files: ['src/**/*.js'],
37-
tasks: ['jshint', 'requirejs'],
38-
options: { livereload: true }
39-
},
40-
// reference
41-
reference_build: {
42-
files: ['docs/yuidoc-p5-theme/**/*'],
43-
tasks: ['yuidoc'],
44-
options: { livereload: true, interrupt: true }
45-
},
46-
// scripts for yuidoc/reference theme
47-
yuidoc_theme_build: {
48-
files: ['docs/yuidoc-p5-theme-src/scripts/**/*'],
49-
tasks: ['requirejs:yuidoc_theme']
50-
}
51-
},
52-
mocha: {
53-
test: {
54-
src: ['test/*.html'],
55-
// src: ['test/**/*.html'],
17+
tasks: ['requirejs'],
5618
options: {
57-
// reporter: 'test/reporter/simple.js',
58-
reporter: 'Nyan',
59-
run: true,
60-
log: true,
61-
logErrors: true
62-
}
63-
},
19+
livereload: {
20+
port: 35728
21+
}
22+
},
23+
}
6424
},
6525
requirejs: {
6626
unmin: {
@@ -118,15 +78,24 @@ module.exports = function(grunt) {
11878
'audioin': 'src/audioin',
11979
'env': 'src/env',
12080
'delay': 'src/delay',
81+
'effect': 'src/effect',
82+
'panner3d' : 'src/panner3d',
83+
'listener3d': 'src/listener3d',
12184
'filter': 'src/filter',
12285
'reverb': 'src/reverb',
86+
'eq': 'src/eq',
12387
'distortion': 'src/distortion',
88+
'compressor': 'src/compressor',
12489
'looper': 'src/looper',
90+
'soundloop': 'src/soundLoop',
12591
'soundRecorder': 'src/soundRecorder',
12692
'signal': 'src/signal',
12793
'metro': 'src/metro',
12894
'peakdetect': 'src/peakDetect',
129-
'gain': 'src/gain'
95+
'gain': 'src/gain',
96+
'audioVoice': 'src/audioVoice',
97+
'monosynth': 'src/monosynth',
98+
'polysynth': 'src/polysynth'
13099
},
131100
useStrict: true,
132101
wrap: {
@@ -167,15 +136,42 @@ module.exports = function(grunt) {
167136
}
168137
}
169138
},
139+
},
140+
open: {
141+
testChrome: {
142+
path: 'http://localhost:8000/test',
143+
app: 'Chrome'
144+
},
145+
testFirefox : {
146+
path: 'http://localhost:8000/test',
147+
app: 'Firefox'
148+
},
149+
testSafari : {
150+
path: 'http://localhost:8000/test',
151+
app: 'Safari'
152+
}
153+
},
154+
connect: {
155+
server: {
156+
options: {
157+
port: 8000,
158+
livereload: 35727,
159+
hostname: '*'
160+
}
161+
}
170162
}
171163
});
172164

173165

174166
grunt.loadNpmTasks('grunt-contrib-requirejs');
175-
grunt.loadNpmTasks('grunt-contrib-yuidoc');
176-
grunt.registerTask('yui', ['yuidoc']);
177-
// grunt.loadNpmTasks('grunt-mocha');
167+
grunt.loadNpmTasks('grunt-eslint');
168+
grunt.loadNpmTasks('grunt-contrib-watch');
169+
grunt.loadNpmTasks('grunt-contrib-connect');
170+
grunt.loadNpmTasks('grunt-open');
178171

172+
grunt.registerTask('lint', ['eslint:source']);
179173
grunt.registerTask('default', ['requirejs']);
180-
174+
grunt.registerTask('dev', ['connect','requirejs', 'watch']);
175+
grunt.registerTask('serve', 'connect:server:keepalive');
176+
grunt.registerTask('run-tests', ['serve', 'open']);
181177
};

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
![](http://p5js.org/img/libraries/sound.jpg)
2+
![](https://cloud.githubusercontent.com/assets/504124/19908328/2cd874ea-a059-11e6-847c-e5da5e957a2f.jpg)
33

44
p5.sound
55
========

examples/Compressor/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<head>
2+
<script language="javascript" type="text/javascript" src="../../lib/p5.js"></script>
3+
4+
<script language="javascript" type="text/javascript" src="../../lib/addons/p5.dom.js"></script>
5+
6+
<script language="javascript" type="text/javascript" src="../../lib/p5.sound.js"></script>
7+
8+
<script language="javascript" type="text/javascript" src="sketch.js"></script>
9+
10+
</head>

0 commit comments

Comments
 (0)