Skip to content
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

Create Moh #3402

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Moh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
هذا مثال على كود بسيط في برنامج Sonic Pi لإنشاء موسيقى راب حزينة. يمكنك تخصيصه وتعديله حسب الحاجة:

```ruby
# تعيين السرعة الإفتراضية للموسيقى
use_bpm 90

# مقاطع الطبل
live_loop :drums do
sample :drum_bass_hard
sleep 0.5
sample :drum_bass_hard
sleep 0.25
sample :drum_bass_hard
sleep 0.25

sample :drum_bass_hard
sleep 0.5
end

# مقطوعة الموسيقى الأساسية
live_loop :melody do
use_synth :piano
play_pattern_timed [:C3, :A2, :F2, :G2], [0.5, 0.5, 0.5, 1]
end

# تأثير صوتي للحزن
live_loop :sad_effect do
with_fx :reverb, mix: 0.7 do
use_synth :piano
play_chord chord(:C3, :minor), release: 4, attack: 0.5
sleep 4
end
end
```

هذا الكود يستخدم الطبلات والموسيقى الأساسية مع تأثير صوتي للحزن باستخدام البيانو. يمكنك تجربة تعديل الأصوات والألحان للحصول على النتيجة التي تناسب ذوقك ورؤيتك للموسيقى الراب الحزينة.