-
Notifications
You must be signed in to change notification settings - Fork 787
Achalguitar #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Achalguitar #489
Conversation
|
This is code from @achalddave merged with the most recent version of Snap, and with the timeout removed. In some sense, #91 + morphic. @pconrad I can work on integrating the ADSR work you've done in #95 (unless you have more recent code to work with) @jmoenig I'm really enjoying this! |
|
Kunal, One thing we will likely want to do is this: instead of a separate "play
|
|
Okay! All things are merged together except for the ADSR envelope. I think it's best practice to make a subclass ADSRNote from Note to implement the envelope. I have begun work but haven't got it working yet. This version in this pull request is working and with the requested changes (single block, etc) |
|
Minor note: Could we add instrument enum so that we can specify instruments by, e.g., instrument.Sine instead of 129? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these going to be added back in before the code is merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add them back, but they don't have implementations....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably makes sense only to add the ones that have implementations.
On Jun 29, 2014 8:39 PM, "Kunal Marwaha" notifications@github.com wrote:
In blocks.js:
@@ -781,16 +781,21 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
null,
true,
{
'(1) Acoustic Grand' : 1,'(2) Bright Acoustic' : 2,'(3) Electric Grand' : 3,'(4) Honky Tonk' : 4,'(5) Electric Piano 1' : 5,'(6) Electric Piano 2' : 6,'(7) Harpsichord' : 7// '(1) Acoustic Grand' : 1,I can add them back, but they don't have implementations....
—
Reply to this email directly or view it on GitHub
https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/pull/489/files#r14334681
.
|
What is the status of this? Do you all think there's something ready to pull? |
|
Yes, please try it out @brianharvey @pconrad @jmoenig @cycomachead |
|
Waiting for @pconrad to be done with it. |
|
Any update @pconrad ? |
|
So, @msalexallen and I are working on this finally---she just got back from a year studying abroad in the UK. We are finding that a lot of our code that was working before---as well as the code in this pull request---is no longer working. I see that the W3C just issued a new draft of the Web Audio API on 11 September 2014, and I'm wondering if we are dealing with a moving target? I sent @marwahaha an email with a screenshot of the problem we ran into when trying to test this code---basically when you try to play a note, you get this: Can anyone else either confirm that they see the same problem, or that they ARE able to play notes with the code in this pull reuqest? If its is just a local problem for us, that would be helpful to know. If instead, it is that something has changed in the browsers implementation of the Web Audio API, that would also be helpful to know. |
|
Seems to me that |
|
More generally, here are things that we may need to change: https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Porting_webkitAudioContext_code_to_standards_based_AudioContext |
|
Achal Dave----thanks for the recon. I'll get together with Alex and see On Mon, Sep 29, 2014 at 1:19 PM, Achal Dave notifications@github.com
Phill Conrad, Lecturer (SOE)*, Dept. of Computer Science pconrad@cs.ucsb.edu, www.cs.ucsb.edu/~pconrad*SOE: a UC teaching faculty appointment, corresponding in rank and job |
|
I've updated to conform with the Web Audio API changes @pconrad . There is still some popping noise - perhaps you could look into it? |
|
The link should work again. |
|
any update on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get "SyntaxError: An invalid or illegal string was specified" when I try to play a note (FF 36).

No description provided.