开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

12
返回列表 发新帖
楼主: 奶糖肤质
收起左侧

[易语言成品模块] BASS音频模块1.0

[复制链接]
结帖率:95% (41/43)
发表于 2024-8-2 09:37:20 | 显示全部楼层   湖北省荆门市
1. format string can contain the following things:
       - plain text like "Some song". This text is merely copied to the output.
       - special identifier, beginning with '%' to substitute for the tag value:
         "%TITL"  - song title;
         "%ARTI"  - song artist;
         "%ALBM"  - album name;
         "%GNRE"  - song genre;
         "%YEAR"  - song/album year;
         "%CMNT"  - comment;
         "%TRCK"  - track number (may include total track count "track/total");
         "%COMP"  - composer;
         "%COPY"  - copyright;
         "%SUBT"  - subtitle;
         "%AART"  - album artist;
         "%DISC"  - disc number (may include total disc count "disc/total");
         "%PUBL"  - publisher/label;
       - expression:
         "%IFV1(x,a)" - if x is not empty, then this evaluates to a,
                        or to an empty string otherwise;
         "%IFV2(x,a,b)" - if x is not empty, then this evaluates to a,
                        else to b;
         "%IUPC(x)" - brings x to uppercase, so "%IUPC(foO)" yields "FOO";
         "%ILWC(x)" - brings x to lowercase, so "%ILWC(fOO)" yields "foo";
         "%ICAP(x)" - capitalizes first letter in each word of x, so
                      "%ICAP(FoO bAR)" yields "Foo Bar";
         "%ITRM(x)" - removes beginning and trailing spaces from x;

       - escaped symbols:
         "%%" - "%"
         "%(" - "("
         "%," - ","
         "%)" - ")"

       Example. Assume we have the following information in the tag:
             Title: "Nemo"
             Artist: "nightwish"
             Album: "Once"
             Track: "3"
             Year: "2004"
             
         Format string: "%IFV1(%TRCK,%TRCK. )%IFV2(%ARTI,%ICAP(%ARTI),no artist) - %IFV2(%TITL,%ICAP(%TITL) -,no title -) %IFV1(%ALBM,%IUPC(%ALBM))%IFV1(%YEAR, %(%YEAR%))"
         Output: "3.- Nightwish - Nemo - ONCE (2004)"

         if 'Artist' and 'Title' are empty, the output will be:
         "3. - no artist - no title - ONCE (2004)"

         if only 'Track' is empty, the output will be
         "Nightwish - Nemo - ONCE (2004)"

       Caution:
         "%IFV2(sometext ,a,b)" always evaluates to a, because a space after
         "sometext" causes the condition string to be not empty. This is
         intentional.

       Another caution:
         "symbols '%(,)' are reserved, that is, they must be escaped if they are
         inteded to appear in the output. See the above example: the parens
         around %YEAR are escaped with '%' to prevent misinterpretation.


使用bass网页下载的tags.dll插件也可以读取常用标签,解码能力还不错,乱七八糟编码都可以正常解析。
以下是我搞的一个例子。

%IFV2(%CMNT,%ICAP(%CMNT),a){-}%IFV2(%ARTI,%ICAP(%ARTI),b){-} %IFV2(%TITL,%ICAP(%TITL) ,c){-}%IFV2(%ALBM, %IUPC(%ALBM),d){-}%IFV2(%YEAR, %(%YEAR%),e){-}%IFV2(%TRCK,%ICAP(%TRCK),f){-}%IFV2(%GNRE,%ICAP(%GNRE),g)
回复 支持 反对

使用道具 举报

结帖率:95% (41/43)

签到天数: 14 天

发表于 2024-8-2 08:22:31 | 显示全部楼层   湖北省荆门市
大佬,你在源码区发帖马上会火起来,平时没几个人会逛模块区
回复 支持 反对

使用道具 举报

发表于 2024-7-31 18:15:27 | 显示全部楼层   辽宁省鞍山市
能否控制某个窗口或进程的音量以及是否静音?
回复 支持 反对

使用道具 举报

签到天数: 3 天

发表于 2024-7-30 19:10:16 | 显示全部楼层   广西壮族自治区*
感谢分享
回复 支持 反对

使用道具 举报

签到天数: 13 天

发表于 2024-7-27 14:19:48 | 显示全部楼层   新疆维吾尔自治区巴音郭楞蒙古自治州
谢谢分享
回复 支持 反对

使用道具 举报

结帖率:0% (0/1)

签到天数: 19 天

发表于 2024-7-27 08:10:11 | 显示全部楼层   山东省德州市
感谢分享
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表