# First lines of codes: "war and a crow!"

**URL:** <https://in-thread.sonic-pi.net/t/first-lines-of-codes-war-and-a-crow/8418>\
**Category:** Creations & Ideas\
**Tags:** releases\
**Created:** [December 2, 2023, 6:17pm UTC](https://in-thread.sonic-pi.net/t/first-lines-of-codes-war-and-a-crow/8418 "2023-12-02T18:17:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beryann](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/beryann/32/3133_2.png) [@beryann](https://in-thread.sonic-pi.net/u/beryann)\
**Post date:** [December 2, 2023, 6:17pm UTC](https://in-thread.sonic-pi.net/t/first-lines-of-codes-war-and-a-crow/8418/1 "2023-12-02T18:17:39Z")

</div>

Hello, some lines of code of a newbie…It’s very dark but it works! Maybe, someone can improve it? Thanks if you try it 😀  
Beryann 😉\*

```ruby
in_thread do
  
  with_fx :reverb do
    loop do
      sample :sn_zome , amp: rand_i, rate: rand, pan: rand
      sleep 1
      sample :misc_crow, amp: rand, pan: rand, rate: rand
      sleep 1
      sample :vinyl_hiss,amp: rand
      
    end
  end
end

```

---

<div class="post-metadata">

**Author:** ![samaaron](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/samaaron/32/7_2.png) [@samaaron](https://in-thread.sonic-pi.net/u/samaaron)\
**Post date:** [December 3, 2023, 8:40am UTC](https://in-thread.sonic-pi.net/t/first-lines-of-codes-war-and-a-crow/8418/2 "2023-12-03T08:40:47Z")

</div>

Nice work @beryann! If you’re ok with a suggestion, I recommend you read [Section 9.2 of the tutorial](https://sonic-pi.net/tutorial.html#section-9-2) on `live_loop`s to make this more simple and flexible.

---

<div class="post-metadata">

**Author:** ![beryann](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/beryann/32/3133_2.png) [@beryann](https://in-thread.sonic-pi.net/u/beryann)\
**Post date:** [December 3, 2023, 10:19am UTC](https://in-thread.sonic-pi.net/t/first-lines-of-codes-war-and-a-crow/8418/3 "2023-12-03T10:19:29Z")

</div>

Hello Sam! it’s a real pleasure for me that you tried this modest contribution!! 😀  
Ok sur that it can be improved and I’ll look at this precisely, thanks Sam  
I am preparing a compilation (in french) of your tutos in Sonic Pi with those (in english this time) of Mr Bomb (the google docs one!) . The tutos in line are awesome but to have the possibility to read them in a paper version is great too! 😉  
And Sonic Pi is absolutly a great program 🫠  
Have a great day!  
Beryann
