Truly independent web browser
Find a file
William McPherson 72cbbd5297 Piano: New timing system and zoomable piano roll
This patch allows roll notes to be of different sizes. This necessitates
a new internal representation of time. BPM and time signatures are
mostly implemented but not exposed.

Roll notes are now sample-accurate and the grid is aligned to 60 BPM
4/4. The roll is divided by the time signature raised to some power of
2, giving the musical divisions of (in the case of 4/4) 16, 32, 64 etc.

Before, our timing was derived from the buffer size and we relied on
that to implement delay. Delay has been rewritten to be sample-granular.
It's now exposed as the proper "divisions of a beat".
Something to be wary of is that the last buffer in the loop is also used
for the start of the next loop. In other words, we loop mid-buffer. This
means we write WAVs with a tiny bit of silence due to breaking the loop
after filling half a buffer.

The data structure for the roll is an array of SinglyLinkedLists of
RollNotes. Separating by pitch (via the array layout) makes insertion
much simpler and faster. Using sorted lists (and thus
SinglyLinkedListIterators) to do lookups is very quick as you know the
sample of the next note and can just compare it to the current sample. I
implemented this with HashMaps and the cost of lookups was abysmal. I
also tried a single SinglyLinkedList and the insertion code got even
more complicated than it already is.
2020-02-27 10:21:13 +01:00
.github Meta: Add GitHub Sponsors to funding options 2019-11-02 23:32:34 +01:00
AK AK: Expose SinglyLinkedListIterator constructor 2020-02-27 10:21:13 +01:00
Applications Piano: New timing system and zoomable piano roll 2020-02-27 10:21:13 +01:00
Base SystemMenu: Move SystemDialog into SystemMenu and remove INI config 2020-02-23 22:03:03 +01:00
Demos Build: Only look at SUBDIRS with Makefiles 2020-02-25 19:56:48 +01:00
DevTools Build: Only look at SUBDIRS with Makefiles 2020-02-25 19:56:48 +01:00
Documentation Documentation: Explain compilation of small changes and ports 2020-02-01 20:16:24 +01:00
Games Minesweeper: Perform sanity check on configuration (#1300) 2020-02-26 11:32:47 +01:00
Kernel Kernel: Fix ASSERTION failed in join_thread syscall 2020-02-27 10:09:44 +01:00
Libraries WavLoader: Add missing AK/OwnPtr.h include 2020-02-27 10:21:13 +01:00
MenuApplets Build: Only look at SUBDIRS with Makefiles 2020-02-25 19:56:48 +01:00
Meta Meta: Integrate Shellcheck into Travis 2020-02-10 10:46:25 +01:00
Ports Ports: Update the C-ray renderer port 2020-02-27 09:53:36 +01:00
Servers Build: Only look at SUBDIRS with Makefiles 2020-02-25 19:56:48 +01:00
Shell Shell: Don't pass nonsense options to waitpid() 2020-02-25 16:08:44 +01:00
Tests LibC: The exec() family of functions should not search "." by default 2020-02-01 16:14:09 +01:00
Toolchain Toolchain: Build demangling into LibC except during toolchain build 2020-02-21 18:54:57 +01:00
Userland AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
.clang-format Meta: Tweak .clang-format to not wrap braces after enums. 2019-06-07 17:13:23 +02:00
.gitignore Demos: Add a dynamic linking demo to show off dlfcn methods 2020-01-01 17:48:41 +01:00
.travis.yml Meta: Integrate Shellcheck into Travis 2020-02-10 10:46:25 +01:00
CODE_OF_CONDUCT.md Meta: Move code of conduct (lol) to a separate file 2019-10-23 10:05:06 +02:00
CONTRIBUTING.md Meta: Reference CodingStyle doc in CONTRIBUTING.md 2020-01-08 19:41:20 +01:00
INSTALL.md Meta: Update link to build instructions in INSTALL.md 2020-01-01 17:33:32 +01:00
LICENSE Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Makefile Build: Enter Libraries before AK, clean tests as separate step 2020-01-01 22:21:50 +01:00
Makefile.common Build: Build with -std=c++2a 2020-02-19 12:03:11 +01:00
Makefile.subdir Build: wrap make invocations with flock(1) 2019-12-28 21:09:33 +01:00
ReadMe.md Meta: Oops, remove duplicate mention of desktop games 2020-02-06 15:54:24 +01:00

SerenityOS

Graphical Unix-like operating system for x86 computers.

Travis CI status

About

SerenityOS is a love letter to '90s user interfaces with a custom Unix-like core. It flatters with sincerity by stealing beautiful ideas from various other systems.

Roughly speaking, the goal is a marriage between the aesthetic of late-1990s productivity software and the power-user accessibility of late-2000s *nix. This is a system by us, for us, based on the things we like.

I (Andreas) regularly post raw hacking sessions and demos on my YouTube channel.

Sometimes I write about the system on my github.io blog.

I'm also on Patreon and GitHub Sponsors if you would like to show some support that way.

Screenshot

Screenshot as of 1133aca

Kernel features

  • x86 (32-bit) kernel with pre-emptive multi-threading
  • Hardware protections (SMEP, SMAP, UMIP, NX, WP, TSD, ...)
  • IPv4 stack with ARP, TCP, UDP and ICMP protocols
  • ext2 filesystem
  • POSIX signals
  • Purgeable memory
  • /proc filesystem
  • Pseudoterminals (with /dev/pts filesystem)
  • Filesystem notifications
  • CPU and memory profiling
  • SoundBlaster 16 driver
  • VMWare/QEMU mouse integration

System services

  • Launch/session daemon (SystemServer)
  • Compositing window server (WindowServer)
  • DNS client (LookupServer)
  • Software-mixing sound daemon (AudioServer)

Libraries

  • C++ templates and containers (AK)
  • Event loop and utilities (LibCore)
  • 2D graphics library (LibGfx)
  • GUI toolkit (LibGUI)
  • Cross-process communication library (LibIPC)
  • HTML/CSS engine (LibHTML)
  • Markdown (LibMarkdown)
  • Audio (LibAudio)
  • PCI database (LibPCIDB)
  • Terminal emulation (LibVT)
  • Network protocols (HTTP) (LibProtocol)

Userland features

  • Unix-like libc and userland
  • Shell with pipes and I/O redirection
  • On-line help system (both terminal and GUI variants)
  • Web browser (Browser)
  • C++ IDE (HackStudio)
  • IRC client
  • Desktop synthesizer (Piano)
  • Various desktop apps & games
  • Color themes

How do I build and run this?

See the SerenityOS build instructions

Wanna chat?

Come hang out with us in #serenityos on the Freenode IRC network.

Author

Contributors

(And many more!) Feel free to append yourself here if you've made some sweet contributions. :)

License

SerenityOS is licensed under a 2-clause BSD license.