Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Should (most) audio switch to fixed point math only (Q15)

Đang mở
#10,936 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
c
Lĩnh vực
embedded-iot

Hướng nghiên cứu

Start by reading issue #10867 and comparing the float/fixed-point conversions mentioned in synth, audioeffects, and audiomixer. The issue is asking for discussion before any broad change, so first establish whether the project wants Q15 as a standard and what exceptions are acceptable; a fixed-point math writeup is also suggested.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

audio enhancement

I was thinking about this after issue #10867 and what appears to be an error in the SAMD vs other CPU code. In a few places in synth, audioeffects and audiomixer (and likely others) values are converted from float to do fixed point math or vice versa. It may be better to standardize on one way and if we need exceptions for some advanced processing in an effect or similar have that as a one off.

If this sounds like a good idea it does not have to be an immediate change for everything but a goal to hit. I'd also suggest (which I could do) a quick writeup on fixed-point math for anyone coming in cold to it.

There are pros and cons. Floating point can be more accurate but of course most the controllers like a FPU so that would hurt the speed quite a lot.

Just looking for thoughts at this point.

Ngôn ngữ chính
C
Star
4.6k
Fork
1.4k
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
166

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của adafruit/circuitpython

Tất cả issue của adafruit/circuitpython

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.