Comments (4)
Thank you. Another example.
(volume! 100)
(key-signature! "e- a- b-")
(tempo! 95)
piano:
V1: o4
{r b >e}4 {g b >e}4 g4. f8 f8. e16 {e d c}4 c4 r
{r <<d f}4 {b >d f}4 >d4. c8 c8. <b16 {b a g}4 g4 r
{r <b >e}4 {g b >e}4 g4. f8 f8. e16 {e d c}4 c4 r
{r <d f}4 {a >d f}4 {r <g b}4 {>e g b}4
{b>c<b>c<b>c<b>c<b>c<b>c}4
<a_16 b16 >g16. f32 e4
V2: o3
r4 b/>e/g <b/>e/g <b/>e/g
r4 <a/>c/f <a/>c/f <a/>c/f
r4 <f/a/b/>d <f/a/b/>d <f/a/b/>d
r4 <b/>e/g <b/>e/g <b/>e/g
r4 <b/>e/g <b/>e/g <b/>e/g
r4 <a/>c/f <a/>c/f <a/>c/f
r4 <b/>f r <b/>c/e
r4 <b>/d/f/a
V3: o2
e1/>e <a1/>a <b1/>b <e1/>e
<e1/>e <a1/>a <b2/>b <e2/>e
<<b2/>b >e4/b/>e
from alda.
Thank you for your response. Suddenly I think of an idea. Usually the piano notes compose of three main parts (i) the main melody (ii) the chord and (iii) the base. Why piano would like to use the pedal is that the left hand usually can hardly control (ii) & (iii) at the same time. Usually the base starts at the beginning of a chord session and is hoped that it can last for the whole chord session. So, the piano is making use of the Pedal and the player can continue to play chord without worrying.
That means usually for one chord session, Pedal is on, base is played at first, chord is then played, Pedal off and the chord session ends. So, I can just put the base in another voice and serves that effect. My example is as follows but there is some problem for me to post the code. So, some characters may be cut.
(volume! 100)
(key-signature! "e- a- b-")
(tempo! 62)
piano:
V1: o4
b8 >g2 f8 g f4. e4 <b8 >g4
{c8 c+8 c8 c-8 c2}8 >c4 <g8 b4. a4 g8
f4. g4 d8 e4. c4.<
b8 >>d c <b16 a g a c d e4.
V2: o3
r4 g8/>e <b/>e/g r <a/>d c-/d/a r <g/>e <b/>e/g r<g/>e <b/>e/g
r8 <g/>e_ <b/>e_/g r <g/>e_ c/e_/b r <f/>d- <b/>d-/e_ r <f/>c <a/>c/f
r8 <f/>d <b/>d/a r <g/>f d/f/g r <g/>e c/e/g r <g-/>e c/e/g-
r8 <f/>e <b/>e/a r <f/>d <b/>a r <g/>e <b/>e/g
V3: o2
r8 e4. >e4. <e4. d4.
c4. >c4. <f4. f4.
b4. b_4. >c4. <a_4.
b4. <b4. >e4.
from alda.
There isn't explicit support for Pedal On/Off in Alda yet (although it's something I'd like to implement, see #320).
In the meantime, you can get a similar effect by setting quant
to a value > 100, meaning the notes should ring out for longer than the length of the note.
piano:
(quant 250)
[ o4 c8 e g > c e < g > c e ]*2
[ o4 c8 d a > d f < a > d f ]*2
[ o3 b8 > d g > d f < g > d f ]*2
[ o4 c8 e g > c e < g > c e ]*2
This isn't exactly the same thing as using the sustain pedal, but it at least sounds close to the desired effect!
from alda.
Very nice! I love that piece :)
from alda.
Related Issues (20)
- player processes get stuck HOT 14
- Can't Create Chord with Cram Expression HOT 6
- Alda REPL: "Play right away" offset calculation doesn't work with voices HOT 1
- Alda REPL server sometimes "claims" more than 1 player on startup
- Exiting Alda REPL in "server only" mode kills all player processes
- Alda REPL "skips" rests at the end of a line
- open /tmp/alda-doctor1917232005/1666820313.mid: no such file or directory HOT 6
- Are there any PORTABLE version of alda that can run without java? HOT 1
- Time to play is too long HOT 15
- can I see debug messages while the player is running? HOT 4
- `pitch` behavior changed from Alda 1 to Alda 2 HOT 4
- Lisp function `part` got deleted in Alda 2 HOT 1
- No way to download Alda 2 HOT 4
- `exec java` resolving to the wrong path HOT 4
- cannot run alda HOT 3
- No Sound HOT 5
- client/parser/scanner.go: invalid rune quoting HOT 9
- Can i generate an mp3 with my code? HOT 3
- [BUG] MIDI failure in JVM on fresh install cause alda and alda-player to both fail HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alda.